#include "Generate_C_std.h"
#include "Pattern_assign_var.h"

class Pattern_assign_expr_foreach_get_key : public Pattern_assign_var
{
	Expr* rhs_pattern()
	{
		get_key = new Wildcard<Foreach_get_key>;
		return get_key;
	}

	void generate_code (Generate_C* gen)
	{
		INST (buf, "assign_expr_foreach_get_key",
			lhs->value, get_key->value->array, get_key->value->iter->value);
	}

protected:
	Wildcard<Foreach_get_key>* get_key;
};

CREATE(Pattern_assign_expr_foreach_get_key);

